package com.rocbrid.business.feign;

import com.rocbrid.common.R;
import com.rocbrid.order.bean.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "seata-order")
public interface OrderFeignClient {
    /**
     * 创建订单
     *
     * @param userId
     * @param commodityCode
     * @param count
     * @return
     */
    @GetMapping("/create")
     R create(@RequestParam("userId") String userId,
                    @RequestParam("commodityCode") String commodityCode,
                    @RequestParam("count") int count) ;

}
